package com.mywork.mvpkodeinxml.model.request;

import org.simpleframework.xml.*;

/**
 * Created by mywork on 17/3/17.
 */
@Root(name = "soapenv:Envelope")
@NamespaceList({
        @Namespace(reference = "http://www.w3.org/2001/XMLSchema-instance", prefix = "xsi"),
        @Namespace(reference = "http://www.w3.org/2001/XMLSchema", prefix = "xsd"),
        @Namespace(reference = "http://schemas.xmlsoap.org/soap/encoding/", prefix = "enc"),
        @Namespace(reference = "http://schemas.xmlsoap.org/soap/envelope/", prefix = "soapenv")
})
public class RequestCommonFunc {
    @Element(name = "soapenv:Body", required = false)
    public RequestBody requestBody = new RequestBody();

    @Root(name = "soapenv:Body", strict = false)
    public static class RequestBody {
        @Element(name = "CommonFunc", required = false)
        public RequestModel CommonFunc = new RequestModel();
    }

    @Root(name = "CommonFunc", strict = false)
    public static class RequestModel {
        @Attribute(name = "xmlns")
        public String xmlsAttribute;

        @Element(name = "func", required = false)
        public String func;

        @Element(name = "strParam", required = false)
        public String strParam;

        @Element(name = "reserved", required = false)
        public String reserved;

    }
}
